#ifndef _LOGICANALYZER_H__
#define _LOGICANALYZER_H__


#include <stdint.h>
#include "logic_analyzer_sump.h"


#ifdef __cplusplus
extern "C"
{
#endif
/*!< 端点地址 */
#define CDC_IN_EP  0x83 // CDC输入端点地址
#define CDC_OUT_EP 0x04 // CDC输出端点地址
#define CDC_INT_EP 0x85 // CDC中断端点地址

int logic_analyzer_cdc_start(void);
int logic_analyzer_cdc_stop(void);
void logic_analyzer_cdc_read(const uint8_t *data, uint32_t data_len);
void logic_analyzer_cdc_write(const uint8_t *data, uint32_t data_len);
void logic_usbd_event_cfg(void);

#ifdef __cplusplus
    }
#endif

#endif